package com.it.service.impl;

import com.it.mapper.DeptMapper;
import com.it.pojo.Dept;
import com.it.pojo.DeptExample;
import com.it.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author: zgc
 * @version: 1.0
 * @description:
 * @date: 2023/12/21 10:55
 */
@Service
@Transactional
public class DeptServiceImpl implements DeptService {

    @Autowired
    private DeptMapper DeptMapper;

    @Override
    public List<Dept> findAll() {
        DeptExample example = new DeptExample();
        List<Dept> list = DeptMapper.selectByExample(example);
        return list;
    }
}
